package com.my.zl.common.dto;

import cn.hutool.core.bean.DynaBean;

public class DataObj extends DynaBean {
    private static final long serialVersionUID = 3294087260968092430L;
    
    public DataObj(Object bean) {
        super(bean);
    }
    public DataObj(Class<?> beanClass, Object[] params) {
        super(beanClass, params);
    }
    
    public <T> T get(String fieldName,Class<?> toClz){
        T value = super.safeGet(fieldName);
        //进行转换
        
        return value;
    }
    public void set(String fieldName,Object value,Class<?> toClz){
        //进行转换
        
        super.set(fieldName, value);
    }
}
